<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <style>
      .red {
        color: red;
      }
      .blue {
        color: blue;
      }
    </style>
  </head>
  <body>
    <div id="Application">
      <div :class="style">示例文案</div>
    </div>

    <script>
      const { createApp, ref } = Vue;
      let config = {
        setup() {
          const style = ref({
            blue: true,
            red: false,
          });
          return { style };
        },
      };
      createApp(config).mount("#Application");
    </script>
  </body>
</html>
